./scripts/db_ready.sh
python -m ui.index &
celery -A compute worker -l INFO &

cd zmm

if [ "$DJANGO_RESET_DB" = true ]; then
    echo 'Completely resetting database... all previous data will be dropped!'
    python manage.py reset_db
fi

# Migrate ZMM apps

python manage.py makemigrations common
python manage.py tenant_migrate --public yes

python manage.py makemigrations load_planer
python manage.py tenant_migrate
celery -A celery_client worker -l INFO &
# Start ZMM apps
python manage.py runserver 0.0.0.0:8080